package com.jie.utils;

import java.util.concurrent.ThreadLocalRandom;

/**
 * @Author: 杰
 * @Project :net-disk
 * @DateTime: 2024/5/6 10:41
 **/
public class RandomUtils {
    /**
     * 生成随机验证码
     * @return
     */
    public static String generateCaptcha() {
        return String.format("%06d", ThreadLocalRandom.current().nextInt(1000000));
    }
}
